<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="Yingruan" />
<meta content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1,user-scalable=0" name="viewport" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta content="telephone=no" name="format-detection" />
<meta name="apple-mobile-web-app-title" content="foodie">
<title>yhofoodie</title>
<script>
	var htphref2=window.location.href,htp2="";
	if(htphref2.indexOf("https")!=-1){
		htp2="https://"
	}else{
		htp2="http://"
	}
    document.write("<script type='text/javascript' src='"+ htp2 +"api.foodie.vc/JS_config/config.js?" + Math.random() + "'></scr" + "ipt>");
</script>
<script type='text/javascript' src='../common/js/jquery.js?002'></script>
<script type='text/javascript' src='../common/js/mui.min.js?002'></script>
<script type='text/javascript' src='../common/js/vue.min.js?002'></script>
<script>	
    document.write("<script type='text/javascript' src='../common/js/cacheControl.config.js?" + Math.random() + "'></scr" + "ipt>");
</script>
<script>
	function start1(){
		//加载资源
		SrcBoot.output([						
				'../common/css/mui.min.css',
				'../common/css/mycss.css',	
				'../common/css/common.css',
				'../common/js/Q/q.js',
				'../common/js/ajax_new.js',
				'../common/js/fastclick.js',
				'../common/js/map.js',
				'../common/js/ajax.js',	
				'../common/js/jquery.qrcode.min.js',	
				'../common/js/common.js'
		]);
	}
</script>
<script>
	start1()
</script>
<style>
.pace{	background: #fff;
	background-size: cover; min-height: 100%;}
.container {
	position: absolute;top: 45%;left: 0;right: 0;opacity: 0.8;
}
.container .progress {margin: 0 auto;width: 80%;}
.progress {
  padding: 4px;background: rgba(0, 0, 0, 0.05);border-radius: 6px;-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}
.progress-bar {
  position: relative;height: 16px;
  border-radius: 4px;
  -webkit-transition: 0.4s linear;
  -moz-transition: 0.4s linear;
  -o-transition: 0.4s linear;
  transition: 0.4s linear;-webkit-transition-property: width, background-color;
  -moz-transition-property: width, background-color;-o-transition-property: width, background-color;
  transition-property: width, background-color; -webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}
.progress-bar:before, .progress-bar:after {
  content: '';position: absolute;top: 0; left: 0;right: 0;
}
.progress-bar:before {
  bottom: 0;
  background: url("") 0 0 repeat #90c31f;
  border-radius: 4px 4px 0 0;
}
.progress-bar:after {
  z-index: 2;bottom: 45%;border-radius: 4px;
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
}
body < *{ display: none;}
</style>
</head>
<body class="pace">
<div class="loading">
  <section class="container">
    <div class="progress">
      <div class="progress-bar" id="progress-bar" style="width: 1%;"></div>
    </div>
  </section>
</div>
		<div id="body-html"></div>
		<script>
			localStorage.removeItem("Langues")
			$("#body-html").html("");
			//
			var ajaxhead={};
			function mains(){
				FastClick.attach(document.body);//IOS点击延迟
				
				
				//扫码获取信息
				var auth = getQueryString("auth"); //扫码过后获取member_id
				var memberID = localStorage.getItem("yingsoft_home_member_id"); //获取memberid
				
				//alert("缓存ID"+memberID)
				
				common_ajax("2", {auth:auth,member_id:memberID}, "&a=put_member_login", function(h) { //1 登录
					 //设置全局路由
					 
				    Q.reg('main', function (aid) {
					    var route = window.location.hash.slice(2),
					    type = 0,
					    can = route.split("?")[1],
					    route = route.split("?")[0];
					    if(route == "")
					    {
					    	return false;
					    }
					    ajax_new(route, type, route);
					});
					Q.init({index: 'main'});
					//
					
					if(h.status==1){
						ajaxhead=h.result;//设置头信息
						//将登录后的头信息进行缓存
						//alert("接口返回："+JSON.stringify(ajaxhead))
						localStorage.setItem("yingsoft_home_encode", ajaxhead.yingsoft_home_encode);
						localStorage.setItem("yingsoft_home_shop_encode", ajaxhead.yingsoft_home_shop_encode);
						localStorage.setItem("yingsoft_home_member_id", ajaxhead.yingsoft_home_member_id);
						
						setTimeout(function(){
							if(window.location.hash==""){
								Q.go("main-html");
							}							
						},0)
						
					}else{
						setTimeout(function(){
							Q.go("404-html");
						},0)
						
					}
					//localStorage.setItem("member_id", h.result.yingsoft_home_member_id); //不论是否为新用户都将返回的member_id作缓存
				});
			
				
				
				if(isAPP){
					$("body").addClass("isAPP")
				}else{
					$("body").addClass("noAPP")
				}
				
			}
		</script>
	</body>

</html>
